/*
 * Created on 05.03.2004
 */
package ro.qi.framework.sys.repository;

/**
 * @author vlad lepadatu 
 */
public class DatasourceConfiguration {

	private String name;						// the name of the datasource
	private String type;						// the type of the datasource (jndi/jdbc)
	private String template;					// the name of the template
	private boolean isDefault = false;			// is the default datasource?

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "[name:" + name + ";type:" + type + ";template=" + template + ";default=" + isDefault + "]";
	}

	/**
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param string
	 */
	public void setName(String string) {
		name = string;
	}

	/**
	 * @param string
	 */
	public void setType(String string) {
		type = string;
	}

	/**
	 * @return
	 */
	public String getTemplate() {
		return template;
	}

	/**
	 * @param string
	 */
	public void setTemplate(String string) {
		template = string;
	}

	public boolean isDefault() {
		return isDefault;
	}

	public void setDefault(boolean value) {
		isDefault = value;
	}

}
